package com.dqyt.khjc.controller;

import com.dqyt.khjc.bean.ResultMsg;
import com.dqyt.khjc.service.ManufacturerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

@RestController
public class ManufacturerController {


    @Autowired
    private  ManufacturerService manufacturerService;

    /**
     * 查询制造厂商
     * @param request
     * @return
     */
    @RequestMapping(value = "/api/getManufacturers", method = {RequestMethod.GET,RequestMethod.POST})
    public ResultMsg getManufacturers(HttpServletRequest request){
        ResultMsg resultMsg = manufacturerService.getManufacturers(request);
        return resultMsg;
    }


}
